package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import org.springframework.stereotype.Repository;

/**
 * @author zsk
 * @create 2022-03-04-16:51
 */
@Repository
public interface DishService {

    //查询现有菜品(分页查询)
    Page<Dish> findByPage(Integer pageNum, Integer pageSize, String name);

    //新增菜品数据
    void save(Dish dish);

    //根据id查询菜品信息
    Dish findById(Long id);

    //修改菜品信息
    void update(Dish dish);

    //修改菜品状态
    void updateStatus(Integer status, Long[] ids);

    //删除菜品信息
    void deleteById(Long[] ids);
}
